<template>
  <view class="container">
    <!-- 顶部组件 -->
    <u-navbar
      id="nav-bar"
      :is-back="true"
      :background="{ background: '#fff' }"
      :border-bottom="false"
      title="我的政策"
    ></u-navbar>
    <image class="bg" src="/static/images/bg.png" mode="widthFix"></image>
    <view class="content">
      <view class="dataBox">
        <image
          class="dataBox-bg"
          src="/static/images/icon-wdzc.png"
          mode="widthFix"
        ></image>
        <view class="dataBox-content">
          <view class="header">
            <view class="info">
              <view class="value">12,999,999.00</view>
              <view class="label">上月交易量(元)</view>
            </view>
            <image
              class="level"
              src="/static/images/my-level7.png"
              mode="widthFix"
            ></image>
          </view>
        </view>
      </view>

      <view class="section-header">
        <view class="header-in">
          <text>扶持计划</text>
          <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
        </view>
      </view>

      <view class="section">
        <view class="row">
          <view class="label">星标奖励剩余时间</view>
          <view class="value">13:12:11</view>
        </view>
        <view class="row">
          <view class="label">扶持等级剩余时间</view>
          <view class="value">13:22:31</view>
        </view>
      </view>

      <view class="section mt30">
        <view class="section-header pdl30 pdr30">
          <view class="header-in">
            <text>我的分润政策</text>
            <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
          </view>
        </view>
        <view class="dataShowBox">
          <view class="dataShow">
            <view class="data">
              <view class="value">万5</view>
              <view class="label">汇付天下</view>
            </view>
            <view class="data">
              <view class="value">万3</view>
              <view class="label">传统POS</view>
            </view>
            <view class="data">
              <view class="value">万3</view>
              <view class="label">联动优势</view>
            </view>
          </view>
        </view>
      </view>

      <view class="section-header">
        <view class="header-in">
          <text>全部分润政策预览</text>
          <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
        </view>
      </view>

      <view class="section">
        <view class="dataBox pdl30 pdr30">
          <image
            class="dataBox-bg"
            src="/static/images/icon-wdzc.png"
            mode="widthFix"
          ></image>
          <view class="dataBox-content">
            <view class="header">
              <view class="info">
                <view class="value">＜200万</view>
                <view class="label">上月交易量(元)</view>
                <view class="tip">晋升条件:无</view>
              </view>
              <image
                class="level"
                src="/static/images/my-level7.png"
                mode="widthFix"
              ></image>
            </view>
          </view>
        </view>
        <view class="section-header pdl30 pdr30">
          <view class="header-in">
            <text>分润政策(0.6)</text>
            <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
          </view>
        </view>
        <view class="dataShowBox">
          <view class="dataShow">
            <view class="data">
              <view class="value">万5</view>
              <view class="label">汇付天下</view>
            </view>
            <view class="data">
              <view class="value">万3</view>
              <view class="label">传统POS</view>
            </view>
            <view class="data">
              <view class="value">万3</view>
              <view class="label">联动优势</view>
            </view>
          </view>
        </view>

        <view class="section-header pdl30 pdr30">
          <view class="header-in">
            <text>分润政策(0.63)</text>
            <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
          </view>
        </view>
        <view class="dataShowBox">
          <view class="dataShow">
            <view class="data">
              <view class="value">万4</view>
              <view class="label">4G电签</view>
            </view>
            <view class="data">
              <view class="value">万4</view>
              <view class="label">传统POS</view>
            </view>
            <view class="data">
              <view class="value">万4</view>
              <view class="label">微智能</view>
            </view>
          </view>
        </view>
      </view>

      <view class="section mt30">
        <view class="dataBox pdl30 pdr30">
          <image
            class="dataBox-bg"
            src="/static/images/icon-wdzc.png"
            mode="widthFix"
          ></image>
          <view class="dataBox-content">
            <view class="header">
              <view class="info">
                <view class="value">200万≤X＜400万</view>
                <view class="label">上月交易量(元)</view>
                <view class="tip">晋升条件:无</view>
              </view>
              <image
                class="level"
                src="/static/images/my-level7.png"
                mode="widthFix"
              ></image>
            </view>
          </view>
        </view>
        <view class="section-header pdl30 pdr30">
          <view class="header-in">
            <text>分润政策(0.6)</text>
            <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
          </view>
        </view>
        <view class="dataShowBox">
          <view class="dataShow">
            <view class="data">
              <view class="value">万5</view>
              <view class="label">汇付天下</view>
            </view>
            <view class="data">
              <view class="value">万3</view>
              <view class="label">传统POS</view>
            </view>
            <view class="data">
              <view class="value">万3</view>
              <view class="label">联动优势</view>
            </view>
          </view>
        </view>

        <view class="section-header pdl30 pdr30">
          <view class="header-in">
            <text>分润政策(0.63)</text>
            <image src="/static/images/icon-tzgg.png" mode="widthFix"></image>
          </view>
        </view>
        <view class="dataShowBox">
          <view class="dataShow">
            <view class="data">
              <view class="value">万4</view>
              <view class="label">4G电签</view>
            </view>
            <view class="data">
              <view class="value">万4</view>
              <view class="label">传统POS</view>
            </view>
            <view class="data">
              <view class="value">万4</view>
              <view class="label">微智能</view>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    navigateTo(url) {
      uni.navigateTo({
        url: url,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.container {
  width: 100%;
  min-height: 100vh;
  padding: 0 0 60rpx;
  text-align: center;
  background-color: #f5f5f5;
  .bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
  }
}

.content {
  position: relative;
  width: 100%;
  padding: 0 30rpx;
  z-index: 9;
}

.dataBox {
  position: relative;
  margin-top: 30rpx;
  width: 100%;
  padding: 0;
  .dataBox-bg {
    width: 100%;
    height: auto;
  }

  .dataBox-content {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 200rpx;
    padding: 0 60rpx;
    line-height: 1;
    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      text-align: left;
      .info {
        flex: 1;
        min-width: 0;
        padding-right: 20rpx;
        .value {
          font-family: DIN, sans-serif;
          font-weight: bold;
          font-size: 48rpx;
          color: #ffeacc;
        }
        .label {
          margin-top: 20rpx;
          font-weight: 400;
          font-size: 24rpx;
          color: rgba($color: #ffffff, $alpha: 0.5);
        }
        .tip {
          margin-top: 20rpx;
          font-weight: 400;
          font-size: 24rpx;
          color: #ffffff;
        }
      }
      .level {
        margin-right: 10rpx;
        margin-bottom: 20rpx;
        width: 87rpx;
        height: auto;
      }
    }
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 30rpx 0;
  .header-in {
    position: relative;
    display: inline-block;
    padding-right: 12rpx;
    text {
      position: relative;
      font-weight: 800;
      font-size: 28rpx;
      color: #333333;
      z-index: 9;
    }
    image {
      position: absolute;
      top: -10rpx;
      right: 0;
      width: 32rpx;
      height: 32rpx;
      background: #f2e3d0;
      border-radius: 50%;
      z-index: 1;
    }
  }
}

.section {
  width: 100%;
  padding: 0;
  background: #ffffff;
  border-radius: 20rpx;
  overflow: hidden;
  .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40rpx 30rpx;
  }
  .dataShowBox {
    width: 100%;
    padding: 0 30rpx 30rpx;

    .dataShow {
      display: flex;
      justify-content: space-between;
      width: 100%;
      padding: 30rpx;
      background: #f7f7f7;
      border-radius: 16rpx;
      .data {
        flex: 1;
        min-width: 0;
        text-align: center;
        .value {
          font-family: DIN, sans-serif;
          font-weight: bold;
          font-size: 32rpx;
          color: #333333;
        }
        .label {
          margin-top: 12rpx;
          font-weight: 400;
          font-size: 24rpx;
          color: #999999;
        }
      }
    }
  }
}

.mt30 {
  margin-top: 30rpx !important;
}

.pdl30 {
  padding-left: 30rpx !important;
}

.pdr30 {
  padding-right: 30rpx !important;
}
</style>
